public class Example06 {
    public static void main(String[] args){
        int x = 0;
        int y = 0;
        int z = 0;
        boolean a,b;
        //false & false a是false
        a = x > 0 & y ++ > 1;
        System.out.println(a);
        //上面y++运算过了y是1
        System.out.printf("y = "+y);
        //false && false b是false
        b = x > 0 && z++ >1;
        System.out.println(b);
        //z 是 1
        System.out.printf("z ="+z);
    }
}
